package com.plant.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DbsetContentType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dbset_content_type", catalog = "mr_plants")
public class DbsetContentType implements java.io.Serializable {

	// Fields

	private Integer id;
	private String tableName;
	private Integer contentType;
	private String note;
	private String shortName;

	// Constructors

	/** default constructor */
	public DbsetContentType() {
	}

	/** minimal constructor */
	public DbsetContentType(String tableName, Integer contentType,
			String shortName) {
		this.tableName = tableName;
		this.contentType = contentType;
		this.shortName = shortName;
	}

	/** full constructor */
	public DbsetContentType(String tableName, Integer contentType, String note,
			String shortName) {
		this.tableName = tableName;
		this.contentType = contentType;
		this.note = note;
		this.shortName = shortName;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "table_name", nullable = false, length = 32)
	public String getTableName() {
		return this.tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	@Column(name = "content_type", nullable = false)
	public Integer getContentType() {
		return this.contentType;
	}

	public void setContentType(Integer contentType) {
		this.contentType = contentType;
	}

	@Column(name = "note", length = 32)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Column(name = "short_name", nullable = false, length = 16)
	public String getShortName() {
		return this.shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

}